.class public Lcom/brixd/niceapp/activity/DailyAppsActivity;
.super Lcom/brixd/niceapp/activity/AbsBaseActivity;
.source "DailyAppsActivity.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 17
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;-><init>()V

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 6
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 21
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 22
    const v2, 0x7f030010

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/DailyAppsActivity;->setContentView(I)V

    .line 24
    invoke-static {}, Lcom/brixd/niceapp/service/AppService;->getCachedAppModelsJsonData()Lorg/json/JSONObject;

    move-result-object v1

    .line 25
    .local v1, "jsonData":Lorg/json/JSONObject;
    sget-object v2, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->NICE_DAILY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    invoke-static {v1, v2}, Lcom/brixd/niceapp/model/AppModel;->parseAppModels(Lorg/json/JSONObject;Lcom/brixd/niceapp/constant/AppConstant$ModuleType;)Ljava/util/ArrayList;

    move-result-object v2

    sget-object v3, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;->DAILY_NICE_APP:Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;

    invoke-static {v2, v3}, Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;->getDailyAppInstanceForActivity(Ljava/util/ArrayList;Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment$CardType;)Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;

    move-result-object v0

    .line 26
    .local v0, "cardViewPagerFragment":Lcom/brixd/niceapp/activity/fragment/CardViewPagerFragment;
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/DailyAppsActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    const v3, 0x7f0a006a

    invoke-virtual {v2, v3, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    .line 27
    return-void
.end method
